home *** CD-ROM | disk | FTP | other *** search
/ Hentai Interactivo 50 / HENTAI_50.iso / flashplayers / fposx.dmg / Install Flash Player 8 OSX.app / Contents / Resources / Install Flash Player 8 OSX.rsrc / shsc_5000 < prev    next >
Text File  |  2005-08-27  |  846b  |  18 lines

  1. #!/bin/sh
  2. echo "Attempting to make the following folder writable for Flash Player installation..." > ~/SetFolderWritable.log
  3. # $1 is the path to the components folder, e.g. /Applications/Netscape.app/Contents/MacOS/components
  4. echo "$1" >> ~/SetFolderWritable.log
  5. # non recursive first, we must grant rwx to the owner and group, or else we cannot add or modify a file
  6. chmod 775 "$1" >> ~/SetFolderWritable.log 2>&1
  7. # now recursive
  8. chmod -R 775 "$1" >> ~/SetFolderWritable.log 2>&1
  9.  
  10. ERROR=`grep -i "components: Permission denied" ~/SetFolderWritable.log`
  11. ERROR2=`grep -i "components: Operation not permitted" ~/SetFolderWritable.log`
  12.  
  13. if [ "X$ERROR" != "X" ] || [ "X$ERROR2" != "X" ] ; then
  14.     # this means the installer has no read, write and execute permission on the folder
  15.     touch ~/SetFolderWritableFailed.txt
  16. fi
  17.  
  18. rm -f ~/SetFolderWritable.log